Machine Learning Interview Leetcode Solutions With Explanation