J.P. Morgan interview question

Solve two data analysis coding problems .