Nokia interview question

Fibonacci series, factorial, logics in python