Hexaware Technologies interview question

1. Stream API for a given requirement