Pregunta de entrevista de Google

Solve the game "Mastermind" as a computer playing against a human