Google interview question

DSA question, almost certainly on Leetcode