MongoDB interview question

Implement code to find the nth Fibonacci number