please provide the corner cases
What could the corner cases
this is not correct way
you have to take mod in each steps
because constraints are very large so a^b will overflow and after that taking mod is of no use
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.