Affinity Portugal interview question

Because I am a java developer, they asked me about design patterns