Pregunta de entrevista de Intellias

Question involves using Arraylist and Streams API.