IBM interview question

Algorithms: Write a program to determine whether a tic-tac-toe game is complete or not.