Cognizant interview question

Questions on Java 8 on filter, map, groupingby and other operations