Silverline interview question

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