X interview question

Make checkers backend API for a frontend to call.