how to find mod of large numbers in python? : how to find (a^(b^c))% (10^9 + 7) in python for large inputs ?
my code just get terminated after few test case
[referred question][1]


  [1]: https://www.hackerrank.com/contests/programming-camp-smvdu/challenges/multiple-powers/problem