Pergunta de entrevista da empresa BBD

Find the error in the code. Had a Fibinacci sequence question.