Rippling interview question

code a chess board class