Morgan Stanley interview question

Writing queries in SQL, coding problems, algorithms