Publicis Sapient Interview Question

Based on Java 8 lamda function map vs filter