Question 4
John wrote a three-digit number. Peter guessed 123: one digit and its position are correct. He guessed 456: two digits are correct but both positions wrong. He guessed 354: all three digits are correct but all positions wrong. What number did John write?

