Google interview question

A leetcode style coding question.