SAP interview question

Write an algorithm to solve the Fibonacci sequence.