Given an range of number's starting with integer L and ending at R, the task is to count the numbers which have same first and last digits.
The first line of the input contains an integer T, denoting the number of test cases. The T test case follow. The only line of the each test case contains two space seperated integer's L and R.
For each test case output a single line containing a single integer denoting the count of the required number's.
1 <= T <= 104
1 <= L,R <= 108
TestCase1:Number with same first and last digits in the given range are: [7 8 9 11 22 33 44 55 66].
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.