Google interview question

Leetcode easys, nothing too crazy