Reverse Array Problem Leetcode Two Sum Python 3