Domanda di colloquio di Citi

Solve some coding problems and explain the thinking behind your answers.