input: def filter_array(array, criteria):
      """ Filter an array by a given criteria.
      >>> 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, 9, 10, 12, 15], lambda x: x % 3 == 0)
      [9, 12, 15]
      """
output:     filtered_array = [x for x in array if criteria(x)]
      return filtered_array