This is the Fibonacci series
1, 1, 2, 3, 5, 8, 10 ...
Write an efficient algorithm that will take as input an input n and will return the two numbers directly proceeding the nth Fibonacci number.
Examples
nthFib(1) => [undefined, undefined]
nthFib(2) => [undefined , 1]
nthFib(3) => [1,1]
nthFib(4) => [1,2]
nthFib(5) => [2,3]