mthree's screening analytics needs to count values in an integer range that satisfy a digit-based rule. A number is lucky if its decimal representation contains at least one 6 or at least one 8, but not both. Other digits are allowed.
Implement count_lucky_numbers(left, right) to return the number of lucky integers in the inclusive range [left, right].
left and right.[left, right] contain 6 or 8, but not both.1 <= left <= right <= 10^18 - 16 or at least one 8, but not both.def count_lucky_numbers(left, right):