Google Interview Question

Write an algorithm to solve Wordle