Pergunta de entrevista da empresa Vanguard

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