input: 
  def filter_array(array, criteria):
      """ Filter an array based on the given criteria function.
      >>> array = [1, 2, 5, 10, 15, 20, 25, 30]
      >>> criteria = lambda x: x % 5 == 0
      >>> filter_array(array, criteria)
      [5, 10, 15, 20, 25, 30]
      """
  
output:     return [x for x in array if criteria(x)]