Depop interview question

they asked to create algorithm for fibonacci