Citi interview question

Not too hard.