Reverse Array Problem Leetcode Two Sums Python