Citi Interview Question

Standard interview coding questions pretty much