i coded the program for this problem by using modular exponentiation technique. but when i submit the same then i get 9/10test cases passed but only 1 test case is not passing. why is this so? what am i doing wrong please somebody help me?
this is my code