Morgan Stanley Interview Question

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