Morgan Stanley interview question

Round 1: Project discussion. SCALA based question, like FlatMap, Map, fold, foldLeft