Morgan Stanley Interview Question

C++ based questions logic building