Medium20 min
Fibonacci Number
Return the nth Fibonacci number, where F(0) = 0 and F(1) = 1.
Your function
Implement solve(value, extra) in JavaScript. Return the answer; printing alone does not count as a result.
Examples
Input:
[0]Output:
0Input:
[1]Output:
1Constraints
0 ≤ value ≤ 30