Knab interview question

Fibonacci function