Let $f , g : \mathbf { R } \rightarrow \mathbf { R }$ be defined as : $f ( x ) = | x - 1 |$ and $g ( x ) = \begin{cases} \mathrm { e } ^ { x } , & x \geq 0 \\ x + 1 , & x \leq 0 \end{cases}$ Then the function $f ( g ( x ) )$ is
(1) neither one-one nor onto.
(2) one-one but not onto.
(3) onto but not one-one.
(4) both one-one and onto.
Let $f , g : \mathbf { R } \rightarrow \mathbf { R }$ be defined as : $f ( x ) = | x - 1 |$ and $g ( x ) = \begin{cases} \mathrm { e } ^ { x } , & x \geq 0 \\ x + 1 , & x \leq 0 \end{cases}$ Then the function $f ( g ( x ) )$ is\\
(1) neither one-one nor onto.\\
(2) one-one but not onto.\\
(3) onto but not one-one.\\
(4) both one-one and onto.