input: Write a function to filter a list with a given criteria.
  assert filter_list([2, 3, 4, 5, 6, 7], 3) == [3, 6]
  assert filter_list([10, 20, 30, 40, 50], 10) == [10, 20, 30, 40, 50]
  assert filter_list([12, 15, 18, 21, 24], 6) == [12, 18, 24]
output: def filter_list(lst, criteria):
      return [x for x in lst if x % criteria == 0]