input: def filter_array(array, criteria):
      """ Filters an array based on 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([3, 7, 13, 22], lambda x: x % 2 == 0)
      [22]
      """
      return [value for value in array if criteria(value)]
output:     return [value for value in array if criteria(value)]