Given a string of letters, rearranges the letters into dictionary-verified words.