Morgan Stanley interview question

Excel and SQL problems based on their task template (average difficulty)