Prove that applying a monotonically increasing function to a sorted sequence produces a sorted sequence.