Pergunta de entrevista da empresa Brightsource Energy

to code the tic-tac-toe. given a string of a game you should return who won.