J.P. Morgan interview question

Can't remember, some generic coding questions.