J.P. Morgan interview question

2 coding questions + 2 video questions