Microsoft Interview Question

check whether a tic tac toe game has been won