Philips Interview Question

Fibonacci serie