Google interview question

Focused on leetcode easy and medium questions