Insi Interview Question

spark scala question map flatmap