AT&T interview question

Write a program to calculate a fibonacci number.