Pregunta de entrevista de Citi

Standard interview coding questions pretty much