340 - Master-Mind Hints


Difficulty : trivial

Solution Description :

Ad hoc problem

1 3 5 5 -> Secret Code 
6 1 3 5 -> Guess
In guess 3 values(1,3,5) match with secret code. So, total match=3. 
In guess 5 is 4th position and In Secret code 5 is also 4th position. 
So 5 is strong. So, strong match =1
print (strong match value, total match - strong match)
Do this simulation.