Databricks Interview Question

Implementing TicTacToe game that may have various shapes