J.P. Morgan Interview Question

oops threading design pattern