Google interview question

Not selected for interview round.