Numpy Array Has Javascript Interview Question