J.P. Morgan interview question

two codings + one written exam