Question
Let $f$ and $g$ be two functions defined by
$f(x)=\left\{\begin{array}{cc}x+1, & x < 0 \\ |x-1|, & x \geq 0\end{array}\right.$ and $\mathrm{g}(x)=\left\{\begin{array}{cc}x+1, & x < 0 \\ 1, & x \geq 0\end{array}\right.$
Then $(g \circ f)(x)$ is :