Test cases are getting failed

Please help me out with this. Test cases are getting failed. Code: https://ide.codingblocks.com/s/362242

hello @gambhirrahul0
ur logic is not correct.
u need to apply modular exponentiation technique to compute a^b mod c.
direct use of pow will give wrong result because of overflow.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.