J.P. Morgan interview question

C++ written test