Intellias Interview Question

Question involves using Arraylist and Streams API.