Lock code

Clue A: one of the digits 682 is right and is in the right place.
That digit cannot be the 6 because clue B says that one digit is right but is in the wrong place and 6 is in the same place.
That digit cannot be 8 because of clue D.
So the number must be _ _ 2.

Continue like that.
 
Top