input: Write a function to print the Fibonacci series up to a given number `n`.
  assert printFibonacciSeries(5) == "0 1 1 2 3"
  assert printFibonacciSeries(10) == "0 1 1 2 3 5 8"
  assert printFibonacciSeries(0) == ""
  assert printFibonacciSeries(1) == "0"
  assert printFibonacciSeries(2) == "0 1"
output: def printFibonacciSeries(n):
      if n == 0:
          return ""
      if n == 1:
          return "0"
      fib_series = ["0", "1"]
      a, b = 0, 1
      while a + b < n:
          c = a + b
          fib_series.append(str(c))
          a, b = b, c
      return " ".join(fib_series)