Millennium interview question

Code up a function to calculate Fibonacci numbers in cpp