Given a value N, find out the largest palindrome number which is product of two N-digit numbers.
Input: N = 2
Explanation:9009 is the largest number
which is product of two 2-digit numbers.
9009 = 91*99.
Input: N = 1
Explanation: 9 is the largest number
which is product of two 1-digit numbers.
3 * 3 = 9.
You don't need to read or print anyhting. Your task is to complete the function LargestProductPalin() which takes N as input parameter and returns largest palindromic product of 2 N-digit numbers.
Expected Time Complexity: O(10n+1) Expected Space Complexity: O(1)