Saw a word jumble recently, wanted to figure out a programmatical way to solve it. Needs to be optimized.