Amazon interview question

Write code that will return the nth digit of the Fibonacci sequence.