Subject :IMO Class : Class 6

Find the difference between the largest 7-digit number and the smallest 7-digit number formed by using the digits 4, 0, 3, 9 and 7 (using each digit at least once).

A6993951

B6949530

C6963951

D6996951