Walmart Interview Question

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