Reverse Array Problem Leetcode Python Coding