 Product of two digit numbers
Easy Accuracy: 27.09% Submissions: 48 Points: 2

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).

Example 1:

Input:
N = 2222
Output:
484
Explanation:
2222 is divided into 22 and 22.
So, the result is 484.

Example 2:

Input:
N = 10
Output:
10
Explanation:
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)

Constraints:
2 <= N <= 1018

We are replacing the old Disqus forum with the new Discussions section given below.

### Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

#### My Submissions:  