Add winner detection logic to the Tic Tac Toe game by checking rows, columns, and diagonals for three matching marks.
Asked in frontend interviews at Apollo, Microsoft, Atlassian and 1 more