Review concurrent code quality | J.P. Morgan Interview Question