The Fibonacci sequence starts with F(0) = 0 and F(1) = 1. Every later value is the sum of the previous two values.
Given n, return F(n) using a recursive solution.
Inputn = 2
Output1
The first two values are F(0) = 0 and F(1) = 1, so F(2) = 0 + 1 = 1.
Inputn = 6
Output8
Each value is the sum of the previous two. F(4) = 3 and F(5) = 5, so F(6) = 3 + 5 = 8.
0 ≤ n ≤ 30