Array Questions On Leetcode Two Sum Python