Leidos Interview Question

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