Morgan Stanley interview question

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