Redfin Interview Question

Code a function that evaluates the strength of guess in Mastermind