Hewlett Packard Enterprise Development systems may need to evaluate nested power expressions without constructing enormous intermediate integers. Given a base and two nonnegative exponents as decimal strings, compute (base^inner_exp)^outer_exp mod modulus.
Implement compute_power_of_power(base, inner_exp, outer_exp, modulus), where base is an integer, inner_exp and outer_exp are strings containing nonnegative decimal integers, and modulus is a positive integer. Return the integer result in the range 0 through modulus - 1.
The exponents may contain far more digits than Python can safely or practically convert to an integer. Do not convert either exponent string into a native integer. Use modular exponentiation and the identity (a^b)^c = a^(b*c) only when it can be applied without materializing the exponents.
def compute_power_of_power(base, inner_exp, outer_exp, modulus):