Machine Learning Interview Leetcode Two Sum Solution