JPMorganChase interview question

Write a function that solves for the Fibonacci sequence