Pregunta de entrevista de SAP

Write an algorithm to solve the Fibonacci sequence.