input: Write a function to maximize an objective function and find the optimum value.
  assert maximize_obj_func(5) == 6
  assert maximize_obj_func(10) == 16
  assert maximize_obj_func(0) == -4
output: def maximize_obj_func(x):
      return 2 * x + 1 if x > 0 else x - 4