Bloomberg interview question

Design a checker for Wordle