Google Interview Question

Asked me a question to design a function to find a simpler Wordle game.