Pregunta de entrevista de Silverline

Write a function that generates the nth entry in the Fibonacci sequence.