Largest Palindrome Product
Given an integer n, return the largest palindromic integer that can be represented as the product of two n-digit integers. Since the answer can be very large, return it modulo 1337.
Example 1
Input
n = 2Output
98799 x 91 = 9009, and 9009 % 1337 = 987.
Example 2
Input
n = 1Output
9The largest palindromic product of two 1-digit integers is 9.
Constraints
- 1 <= n <= 8