Create Numpy Array Of Consecutive Numbers Leetcode