Vanguard Interview Question

How would you program a hangman-like game?