Google interview question

Straightforward non Leetcode DSA question