Prove the given theorem:  If f : X → Y, g : Y → Z and h : Z → S are functions, then ho(gof) = (hog)of.

Question

Prove the given theorem:

If f : X → Y, g : Y → Z and h : Z → S are functions, then ho(gof) = (hog)of.