Moduler Exponention Problem

My program is passing only few test cases

hello @kodivine0
a^b can be a very big number (ie it can even exceed range of long long ) due to which overflow will occur and hence wa.

to avoid this we use modular exponentiation.