I am stuck on this following problem:
Statement:
Given n, r, x and P where P is a PRIME number.
Print the value nCr % P^x
Constraints:
1 <= r <= n <= 1e12
2 <= x <= 20
2 <= P^x <= 1e6
Thanks for reading the problem. It will be really helpful if you can give me a solution.








