Write a function to find the nth term in the Fibonacci sequence.
Use zero-based indexing: F(0) = 0 and F(1) = 1. Given a non-negative integer n, return the integer value of F(n).
The function must use an iterative approach with constant auxiliary space.
def fibonacci(n):