Microsoft interview question

Design algorithm that plays "Boggle"