Wayfair Onsite

Similar to guessing game .
You need to guess a word . The word will be there in a master list .

You are provided with a list of Words and number of character match at the right position .

Example 
input {{"MOXTE",3} , {"AXCDG",0},{"MOQRT",2},{"FOUSE",4},{"POWER",1}

return  "MOUSE"    

I have proposed a brute force solution by eliminating non matching words from the master list and print what is left over in the master . But rejected . Any idea how to solve ?

Comments (10)