Pergunta de entrevista da empresa Google

Question related to Fibonacci series