Pregunta de entrevista de Vanguard

How would you code a program to answer a hangman game?