IBM interview question

Design patterns and java 8 questions.rest simple question