Write the smallest and the greatest numbers of 4 digits without repetition of any digit.
Smallest 4 digits number = 1023
Greatest number of 4 digits = 9876