code: def __remove_trailing_zeros(self, collection):
          
          index = len(collection) - 1
          while index >= 0 and collection[index] == 0:
              index -= 1
  
          return collection[:index + 1]
docs: Removes trailing zeroes from indexable collection of numbers