Google interview question

Leetcode hard questions for the most part