Modular Exponentiation


it shows wrong answer for some test cases

@naazsayma123
I think you dont know why we use mod.
We use mod to calculate things which will exceed the Int and long long limits,
to make sure that they don’t exceed the limit we take mod everywhere
I have fixed the code.


you can refer this video also.