Domanda di colloquio di Walmart

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