input: def fibonacci_series(limit: int) -> List[int]:
      """ Print Fibonacci series up to a given number.
      >>> fibonacci_series(5)
      [0, 1, 1, 2, 3]
      >>> fibonacci_series(10)
      [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
      """
output:     result = []
      a, b = 0, 1
      while a <= limit:
          result.append(a)
          a, b = b, a + b
      return result