Microsoft Data Engineer Interview Leetcode 75 Solution