input: Write a python function to generate a Fibonacci sequence up to a given number n.
  assert fibonacciSequence(7) == [1, 1, 2, 3, 5]
  assert fibonacciSequence(10) == [1, 1, 2, 3, 5, 8]
  assert fibonacciSequence(1) == [1]
output: def fibonacciSequence(n):
      sequence = []
      a, b = 1, 1
      while a <= n:
          sequence.append(a)
          a, b = b, a + b
      return sequence