Cisco interview question

How to vectorise a certain set of operations using Numpy.