J.P. Morgan interview question

Two coding questions and video responses.