AIRA MATRIX interview question

about design patterns puzzles