J.P. Morgan Interview Question

Technical question related to modeling