J.P. Morgan Interview Question

OO principles, data structures