Question d’entretien chez J.P. Morgan

Basic coding questions, then your thought process on them