Pergunta de entrevista da empresa Palantir Technologies

Implement a function that checks if a player has won tic tac toe