input: def build_stone_pile(n):
      """
      Given a positive integer n, construct a pile consisting of n levels of stones.
      The first level starts with n stones.
      The number of stones in the subsequent level is:
          - the next successive odd number if n is odd.
          - the next successive even number if n is even.
      Return the count of stones in each level as a list, where the element at index
      i represents the number of stones in the (i+1)th level.
  
      Examples:
      >>> build_stone_pile(3)
      [3, 5, 7]
      """
output:     
      result = []
      current = n
      for i in range(n):
          result.append(current)
          if n % 2 == 0:  # n is even
              current += 2
          else:           # n is odd
              current += 2
      return result
  