Pregunta de entrevista de Walmart

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