Leidos interview question

Write code to generalize the Fibonacci sequence for any size sequence.