A super-palindrome is defined as a number that meets two conditions:
The number itself must read the same forward and backward (a palindrome).
The number must also be the square of another palindrome.
You are given two string values, left and right, representing the lower and upper bounds of a range.
Your task is to calculate how many super-palindromes fall within this inclusive interval.
Input: left = "10", right = "5000"
Output: 5
Explanation:
Valid super-palindromes include: 121, 484, 10201, 12321, 14641.
Input: left = "400", right = "10000"
Output: 2
Explanation:
Only 484 and 10201 lie within this range.
Accepted:
Submission: