MathWorks interview question

Design a chess game (OOD)