Question 167
Wally has a very unusual combination lock number. It has five digits, all different, and is divisible by $111$. If he removes the middle digit and replaces it at the end, the result is a larger number that is still divisible by $111$. If he removes the digit that is now in the middle and replaces it at the end, the result is a still larger number that is still divisible by $111$. What is Wally's combination lock number? Explain your answer!