Pergunta de entrevista da empresa Hello World!

Q: Explain and code a way to detect a win in tic tac toe.