Google interview question

Normal leetcode medium algorithmic questions