J.P. Morgan Interview Question

Spring, Java, Ds