Amazon interview question

Implement the game of boggle