Magic Leap interview question

Code a chess game in c++