Citi interview question

Mostly straightforward interview