Google interview question

Write an algorithm to solve Wordle