Magic Leap Interview Question

Code a chess game in c++