Given an even digit number N, partition the number into multiple numbers of two digits. For ex: if he chooses 1345 then he parts the number into 13 and 45. Calculate the product of these two digit numbers modulo (109+7).
Input:N = 2222Output:484Explanation:2222 is divided into 22 and 22.
So, the result is 484.
Input:N = 10Output:10Explanation:10 can be divided into only 10
so the result is 10.
You don't need to read input or print anything. Your task is to complete the function prodTwoDigit() which takes an Integer N as input and returns the product of two digit numbers when N is divided.
Expected Time Complexity: O(log100N) Expected Auxiliary Space: O(1)