Leetcode Coding Exercise On Numpy Random