Giving error in some of the test cases

@Ak07 you have to use modular exponentiation to solve this question a simple power function wont be able to solve this.
Please refer to the given code for help

Where do I study this topic from? as the video ’ modulo Properties’ doesn’t explain much about this topic

please refer to this article:

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.