Citi interview question

It was starightforward.