input: 
  def filter_array(array, criteria): 
      """ Filter an array by applying a given criteria function.
      >>> filter_array([1, 2, 5, 10, 15, 20, 25, 30], lambda x: x % 5 == 0)
      [5, 10, 15, 20, 25, 30]
      >>> filter_array([7, 14, 21, 28], lambda x: x % 7 == 0)
      [7, 14, 21, 28]
      """
      return [value for value in array if criteria(value)]
  
output:     return [value for value in array if criteria(value)]