Microsoft interview question

Array manipulation using numpy, time complexity