Write a function that returns the nth Fibonacci number.
MediumProblem Statement
Write a function that returns the nth Fibonacci number.
Sample Input
n = 5
Sample Output
5
Limits
Time: 2s · Memory: 256 MB
Write a function that returns the nth Fibonacci number.
n = 5
5
Time: 2s · Memory: 256 MB