Bally's Interactive Interview Question

What is the difference between map and flatMap on a stream?