Question 6
A luggage code has three digits from 0 to 9. Guess 923 has exactly one correct digit in the correct position. Guess 958 has exactly one correct digit, but in the wrong position. Guess 379 has exactly two correct digits, both in wrong positions. Find the code.