Pregunta de entrevista de Amazon

Calculate the nth fibonacci sequence. How would you optimize the algorithm.