Modular Exponentiation

An alternative way.

and another:

Last updated