func_code: def sub_power(n, p):
      if p == 0:
          return p
      if p == 1:
          return n
      return n ** p - 1
  
  
  def power(n, p):
  
      def sub_power(n, p):
          if p == 0:
              return p
          if p == 1:
              return n
          return n ** p - 1
      return sub_power(n, p) + 1