ZS Associates interview question

Nothing unexpected.