Morgan Stanley Interview Question

The previous project explained in details.