input: Write a python function to generate the Fibonacci series and return it as a list.
  assert FibonacciSeries(10) == [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
  assert FibonacciSeries(5) == [0, 1, 1, 2, 3]
  assert FibonacciSeries(1) == [0]
output: def FibonacciSeries(n):
      if n <= 0:
          return []
      series = [0]
      if n > 1:
          series.append(1)
      for i in range(2, n):
          series.append(series[-1] + series[-2])
      return series