I think that you have not understood the definition of the metric on this space.

Do you understand the there are many different ways to define metrics?

One sees the so calledsupremum metricfor this space of continuous functions:

.

Here is another possible metric: .

Thus you need to see what is the definition for the metric your textbook expects you to use on the space.