Calculate where is given as an array of digits. For example, if and , you compute .
The exponent can be extremely large (up to 2100 digits), so you cannot convert it to a regular integer. This tests your understanding of modular exponentiation properties.