WD interview question

design chess game