Overjet interview question

Chess board game, design patterns