Consider a function $f(x) = 1 - |x|$ on $-1 \leq x \leq 1$. The value of $x$ at which the function attains a maximum, and the minimum value of the function are:
1. $0, -1$
2. $-1, 0$
3. $0, 1$
4. $-1, 2$