Reverse Array Problem Leetcode Python Study