This question was asked in How to check if function has inverse?

composite function

Nulpon Pessa's image