Classic Informatics Interview Question

Difference b/w map and filter?