Blume Global interview question

basics of Java 8