What is the sum of the digits of the number 2^1000?
Implement sum_digits_of_two_power(exponent), which returns the sum of the decimal digits of 2^exponent; calling it with exponent = 1000 must return 1366. Compute the decimal representation using a digit-based algorithm rather than converting the full value with arbitrary-precision integer or string operations.
Input: a nonnegative integer exponent. Output: an integer digit sum.
Constraints: 0 <= exponent <= 1000.
def sum_digits_of_two_power(exponent):