Aptean interview question

Solution for fibonacci number problem ?