Barclays interview question

Don't remember the questions exactly but are given 3 design patterns, explain them and write a code in Java