A numeric lock has 3 digit code with the below rules:
(3,0,2)one number is correct and well-placed;
(3,5,6)one number is correct but wrong placed;
(5,7,4)Two numbers are correct but wrong placed;
(6,8,9)nothing is correct;
(6,7,0)one number is correct but wrongly placed