Answer:
370
Explanation:
Let the code be: abc
Clues:
- 427- one digit is right but in the wrong place
- 490- one digit is right in its place
- 032- two digits are right but both in the wrong place
- 156- all digits are wrong
- 593-one digit is right but in the wrong place
⇒ Starting with clue 4 and discarding 1,5 and 6
⇒ Clue 2 and 5 ⇒ discarding 9 since contradicting statements, it can't be in the second place as it is wrong according to other statement
⇒ Clue 5 and 3 ⇒ 3 is left as correct digit and goes to first place to replace a.
⇒ Clue 1 and 2 ⇒ discarding 4 as it can't be right and wrong same time
⇒ Clue 2 ⇒ since other 2 digits are discarded, 0 left as correct digit and it goes to third place to replace c.
⇒ Clue 1 and 3⇒ digit 2 is discarded, as digits 0 and 3 chosen, we have left with digit 7 which goes to second place to replace b.
So the code is: 370