Google interview question

Leet code medium / easy hards