Microsoft Interview Question

Array manipulation using numpy, time complexity