input: def fibonacci_series(n: int) -> str:
      """
      Develop an algorithm to print Fibonacci series up to a given number.
      >>> fibonacci_series(1)
      '0'
      >>> fibonacci_series(5)
      '0 1 1 2 3'
      >>> fibonacci_series(10)
      '0 1 1 2 3 5 8'
      """
      if n <= 0:
          return ""
      elif n == 1:
          return "0"
      
      result = "0 1"
      a, b = 0, 1
      for i in range(2, n):
          c = a + b
          if c >= n:
              break
          result += f" {c}"
          a, b = b, c
      
      return result
output:     if n <= 0:
          return ""
      elif n == 1:
          return "0"
      
      result = "0 1"
      a, b = 0, 1
      for i in range(2, n):
          c = a + b
          if c >= n:
              break
          result += f" {c}"
          a, b = b, c
      
      return result