input: def sum_two_digit_elements(arr, k):
      """
      Given a non-empty list of integers 'arr' and an integer 'k', calculate
      the total of the elements containing no more than two digits among the first 'k' elements in 'arr'.
  
      Example:
  
          Input: arr = [111,21,3,4000,5,6,7,8,9], k = 4
          Output: 24 # sum of 21 + 3
  
      Constraints:
          1. 1 <= len(arr) <= 100
          2. 1 <= k <= len(arr)
      """
output:     total = 0
      for i in range(min(k, len(arr))):
          if -99 <= arr[i] <= 99:
              total += arr[i]
      return total