I am writing a game of three dimensional tic-tac-toe. I need to have a method that can look at the board, and determine if a player has won. Your requirement is that this method is passed an array that represents the board, and returns an answer that can be used to determine the state of the game.
I got one of these questions during my java test. I was wondering what this answer was.