Google Interview Question

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