Tic-Tac-Toe Game (M x N Board with Configurable Win Condition) – Databricks Coding Interview Question