RTSmunity interview question

Write Fibonacci function