MathWorks interview question

design a board game