what is the difference between the longest 4 digit without repitition and the smallest 3 digit numbers without repitition