Question 4
John wrote a four-digit number with all digits different. Guess 1703 has two correct digits in correct positions; guess 2745 has two correct digits in wrong positions; guess 3541 has all digits correct but all in wrong positions. Find the number.

