Philips interview question

Write a C function to calculate a Fibonacci number