If the given digits are arranged in the descending order, we get the greatest number.
[1]
So, greatest 4-digit number formed using the given digits = 5430
[1]
If the given digits are arranged in the ascending order, we get the smallest number.
[1]
Here, 0 is the smallest number. So, 0345 = 345 will be the smallest possible number.
[1]
The difference between them
= 5430 - 345
= 5,085
[1]