Amazon Interview Question

code boggle game, find all possible words.