The Fibonacci sequence is defined as:
Given nnn, compute FnF_nFn.
nnn
FnF_nFn
0
For this input, the required output is 0.
1
For this input, the required output is 1.
3
For this input, the required output is 2.
2
5
For this input, the required output is 5.