Google Interview Question

DSA question, almost certainly on Leetcode