Continuous function/Closed interval/Continuous continuation/Exercise

Let

be a continuous function. Show that there exists a continuous extension

of .