Capgemini interview question

Easy question asked on java design pattern