JPMorganChase interview question

Java Stream API, Functional interface