problem 16: Power digit sum