Let $f:X\rightarrow Y$ be non-surjective (not onto), and let $g:Y\rightarrow Z$ be non-injective (not $1-1$). Now, construct the composition $g\circ f$ such that it's a bijection.
My approach was this: Let $f$ be $x^2$, and let $g$ be $x^2$, thus $g\circ f$ is $x^4$, which has an inverse, namely $\sqrt[4]{x}$, and since invertability is necessary and sufficient for bijectivity, then the desired construction is complete.
Here is my second approach: Let $f$ be defined as $f(x)=\sqrt{x}$, where $f:\mathbb{R_{\geq 0}}\rightarrow \mathbb{R}$, and let $g$ be defined as $g(x)=x^2$, where $g:\mathbb{R}\rightarrow \mathbb{R_{\geq 0}}$, so $(g\circ f)(x)=x$, which clearly is invertible and therefore bijective, and thus the desired construction has been completed; quod erat demonstrandum. Right?