Leetcode Coding Exercise On Numpy And Scipy