Barclays interview question

create a function that returns the nth fibonacci number