Topic: Mathematics Problem / Level: advanced

Problem: Implement a function to calculate the modular exponentiation.

Run the code to see the output here...