Walmart interview question

ReactJs general questions. Write a function that gives me the Fibonacci sequence.