You are given a positive integer n. Your task is to determine whether it is a Kaprekar number.
A number is a Kaprekar number if its square can be split into two parts such that the sum of the left and right parts equals the original number. The right part must be non-zero, and the split must preserve the digit positions of the squared number.
Return Yes if n satisfies this property; otherwise, return No.
Input: n = 45
Output: Yes
Explanation: The square of 45 is 2025. Splitting it into 20 and 25 gives 20 + 25 = 45.
Input: n = 9
Output: Yes
Explanation: The square of 9 is 81. Splitting it into 8 and 1 gives 8 + 1 = 9.
Input: n = 10
Output: No
Explanation: The square of 10 is 100. No valid split produces two parts whose sum equals 10.
Sign in to write, run, and submit your solution against the full test suite.