Pregunta de entrevista de Tech Mahindra

How to solve a Fibonacci sequence?