# Injectivity and Surjectivity of composite functions

Yes $$f circ g$$ is injective, is $$g$$ Guaranteed to be also injective?

Similarly, if $$f circ g$$ it is surjective, it is $$g$$ Guaranteed to also be a subjective?

Please give a counterexample if they are not guaranteed, and I can understand it better.