Problem Statement | |||||||||||||
Find the sum of all the digits in all the integers between lowerBound and upperBound, inclusive. | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Constraints | |||||||||||||
| - | upperBound will be between 0 and 2,000,000,000, inclusive. | ||||||||||||
| - | lowerBound will be between 0 and upperBound, inclusive. | ||||||||||||
Examples | |||||||||||||
| 0) | |||||||||||||
| |||||||||||||
| 1) | |||||||||||||
| |||||||||||||
| 2) | |||||||||||||
| |||||||||||||
| 3) | |||||||||||||
| |||||||||||||
| 4) | |||||||||||||
| |||||||||||||