Insi interview question

spark scala question map flatmap