Booz Allen Hamilton interview question

Create a function that determines who wins in a tic tac toe game ?