Amazon Interview Question

implement the application a wordle