input: Write a python function to generate Fibonacci series up to a given number of terms and return it as a list.
  assert FibonacciSeries(5) == [0, 1, 1, 2, 3]
  assert FibonacciSeries(7) == [0, 1, 1, 2, 3, 5, 8]
  assert FibonacciSeries(1) == [0]
output: def FibonacciSeries(n):
      if n == 1:
          return [0]
      fib_series = [0, 1]
      while len(fib_series) < n:
          fib_series.append(fib_series[-1] + fib_series[-2])
      return fib_series