HCLTech interview question

Java 8 basic programs about streams and optionals