input: Write a python function to optimize an array where each element less than 0 is set to 0, and each element greater than 100 is set to 100.
  assert optimize_array([3, 105, -10, 35, 120]) == [3, 100, 0, 35, 100]
  assert optimize_array([-5, 0, 50, 101, 99]) == [0, 0, 50, 100, 99]
  assert optimize_array([100, 200, -50, 0, 1]) == [100, 100, 0, 0, 1]
output: def optimize_array(arr):
      return [0 if x < 0 else 100 if x > 100 else x for x in arr]