Publicis Sapient interview question

Based on Java 8 lamda function map vs filter