Google interview question

Easy/Medium Leetcode Problems