Array Questions On Leetcode Two Sum Problem