Morgan Stanley Interview Question

Function overloading, sorting (pros and cons)