Google interview question

They asked a Leetocode easy/medium problem.