Hi , Experts .
Can someone please give me some idea about how to solve this problem . The problem link is in Below .
Link : Problem Link
The modulus Part can be solved by BigMod Operation. But how to calculate a^b here . I have not any idea about how to solve this Part more precisely how to optimize this part . Can someone Help me please .
Thanks in Advance .