Digit Insurance interview question

Difference between Map and FlatMap.