Give example of two functions f : N $\rightarrow$ N and g : N $\rightarrow$ N such that gof is onto but f is not onto.
(Hint : Consider f(x) $=$ x + 1 and g(x)$=$ $\left\{ {\begin{array}{llllllllllllllllllll}{x - 1,}&{if}&{x > 1}\\{1,}&{if}&{x = 1}\end{array}} \right.$