Pergunta de entrevista da empresa Silverline

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