Citi Interview Question

Not too hard.