Python Np Reverse Array Leetcode Problem