J.P. Morgan Interview Question

Can't remember, some generic coding questions.