Morgan Stanley interview question

MapReduce flow