AppDynamics interview question

Java Question Standard Algorithm - Next higher palindrome