Vanguard interview question

How would you program a hangman-like game?