Cisco Interview Question

How to vectorise a certain set of operations using Numpy.