If the step function is a set of horizontal line segments (looking like "steps" without the risers), there then cannot be an inversefunction, because the step function fails the Horizontal Line Test.

There will be an inverse, but it will be a relation containing a set of vertical line segments. And vertical lines are not functions.