Question d’entretien chez Bank of America

How would you code a chess board game ?