J.P. Morgan Interview Question

There were many questions from OS