input: def count_n_digit_numbers_with_one(n):
      """
      Given a positive integer n, return how many n-digit positive integers start or end with the digit 1.
      """
output:     count = 0
      # Iterate through all n-digit numbers
      for i in range(10**(n-1), 10**n):
          num_str = str(i)
          # Check if the number starts or ends with '1'
          if num_str[0] == '1' or num_str[-1] == '1':
              count += 1
      return count