You are given two numbers L and R. You have to find the count of powerful numbers that are present in the range [L,R].
Note: A powerful number is a valid number that contains at least three distinct digits.
Input format
For each test case:
Output format
Constraints
1≤T≤100
0≤L≤R≤109
For the range [100,110] all powerful numbers are :- 102,103,104,105,106,107,108,109 .
Hence answer is 8.