input: Write a function to generate Fibonacci series.
  assert generate_fibonacci_series(5) == [0, 1, 1, 2, 3]
  assert generate_fibonacci_series(10) == [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
  assert generate_fibonacci_series(3) == [0, 1, 1]
output: def generate_fibonacci_series(n):
      if n <= 0:
          return []
      elif n == 1:
          return [0]
      elif n == 2:
          return [0, 1]
      
      series = [0, 1]
      for _ in range(2, n):
          next_value = series[-1] + series[-2]
          series.append(next_value)
      
      return series