Pregunta de entrevista de AT&T

Write a method for calculating nth fibonacci number