Set of finite points/Function/Continuous/Exercise

Let be a finite subset and let

be a function. Show that is continuous.