Google interview question

q. help me with this question