Morgan Stanley interview question

Mostly related to DS, Problem Solving & Designing, SQL( 2 queries max)