Barclays interview question

record classes, predicates, functional interfaces