Reverse Array Problem Leetcode Python Solutions