Google interview question

All problems were leetcode medium