Opteamix interview question

Java 8, Spring, Couple of DS problems