Pregunta de entrevista de Morgan Stanley

Write a Fibonacci function in any language. Consider Time and Space Complexity.