IBS Software interview question

Java Stream API and it uses and asked to write one example problem