Implement a Tic-Tac-Toe game API | Databricks Interview Question