Google interview question

Typical algorithmic problem