Citi Interview Question

Technical question