input: Write a python function to generate a list of integers from 0 to size - 1.
  assert generate_list(5) == [0, 1, 2, 3, 4]
  assert generate_list(0) == []
  assert generate_list(10) == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
output: def generate_list(size):
      return list(range(size))