Reverse Array Problem Leetcode Python Beginner