Domanda di colloquio di Vanguard

How would you program a hangman-like game?