I have a JSON array with all the four letter words from which I pick a random word and present to the user in a jumbled form. But the problem is that sometimes there are more than one solution for the jumbled word.
For example: "tins","snit","nits" are three words with the same letters 't','i','n','s'.
How can I get the all the words that have the letters of the word that I picked in random from the JSON array?