Let . Prove that f is continuous if and only if for every if and only if for every .

Give an example of a continuous f such that for some .

I have shown that the closure case is true, i need some help on the interior case and the example.

I was told to use the fact that inverse image of every open set is open