Write a function that counts the number of times a specific digit occurs in a range (inclusive). The function will look like:
digitOccurrences(min, max, digit) ➞ number of times digit occurs
digitOccurrences(51, 55, 5) ➞ 6
// [51, 52, 53, 54, 55] : 5 occurs 6 times
digitOccurrences(1, 8, 9) ➞ 0
digitOccurrences(-8, -1, 8) ➞ 1
digitOccurrences(71, 77, 2) ➞ 1
min <= max