Exercise: Counting integers
How many positive integers are there less than 1000000 (a million), such that:
- its digits are all distinct; (25% of the total score)
- it is even; (25% of the total score)
- have exactly 3 identical digits. (50% of the total score)
Handle each condition independently.