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:

Gatecse