Psudocode: If word is Lenght you are looking for if no skip word, If yest then check to see if all of the chars in word are in the input array If yes you have a hit next word.