Double Modular Exponentiation

Double Modular Exponentiation - Coding Problem | K5kC