Watershed interview question

Coding question to design wordle