Count number of integers X, such that L≤X≤R and sum of digits of X is a perfect square.
In first test L is 1 and R is 10, there are 4 integers in this range with perfect square digit sum 1, 4, 9 and 10, therefore answer for first test is 4
In second test there are 3 integers which satisfy the condition 90,97 and 100