Pregunta de entrevista de Vanguard

How would you program a hangman-like game?