Scribd Inc. Interview Question

Engineer an algorithm to handle moves in a TicTacToe game and determine which player won.