Find the next smallest palindrome solution [Easy]
For a given positive integer K of not more than 5 digits, write the value of the smallest palindrome larger than K to output. Numbers are always displayed without leading zeros. The first line contains integer T, the number of test cases. Integers K are given in the next t lines.