Question d’entretien chez Walmart

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