When we subtract 1 from largest 5 digit number we get largest 4 digit number as solution
Subtract the largest 5 digit number from the smallest 4 digit number.