PC.F.5: Produce an invertible function from a non-invertible function by restricting the domain.