Tell me about how you would implement nth Fibonacci, explain what you know about OOP, and describe what would happen with an infinite-sized cache.
Implement fibonacci(n) for a non-negative integer n, using F(0) = 0 and F(1) = 1, and return the nth Fibonacci number. For this implementation, explain the relevant OOP principles and the operational consequences of an unbounded cache.
Examples: fibonacci(6) returns 8; fibonacci(0) returns 0.
def fibonacci(n):