Balanced numbers have been used by mathematicians for centuries. A positive integeris
considered a balanced numberif:
1) Every even digit appears an odd numberoftimesinits decimal representation
2) Every odd digit appears an even numberoftimesinits decimal representation
For example, 77, 211, 6222and112334445555677 are balanced numbers while351, 21,
and662 are not.
Given an interval [A, B], your task isto find the amount of balanced numbers in [A, B]
where both A and B are included.
Input
The firstlinecontainsaninteger T representing thenumberof test cases.
You may assume that 1 <= A <= B <= 10^19
Output
foreach test case, you need towriteanumberina single line: the amount of
balanced numbers inthe corresponding interval