[SRM626] SumOfPower by Yanzhe Chen