Given a number, find out the sum of squares of all its digits.
If the number is represented as d1d2d3, then the sum will be d12 + d22 + d32
The first line contains T denoting the no. of test cases
Next T lines each containing a number.
For each test, sum of squares of the digits of the number.
2
12
13246
5
66
12 → 12 + 22 = 5
13246 → 12 + 32 + 22 + 42 + 62 = 66