Morgan Stanley interview question

Questions about coding and mathematics