EPAM Systems interview question

JAVA-8 feature and coding question