You can take the reference and how it works from Wordle ... This app handle the duplicate letters in wordle like "Guess".