AT&T interview question

Write a method for calculating nth fibonacci number