Google Machine Learning Interview Leetcode Javascript