Citi Interview Question

It was starightforward.