J.P. Morgan Interview Question

C++ related questions about dynamic programming