Functions with a Two-Sided Inverse are Bijective