The question asks,
Find a function $g \colon A \to \mathbb{R}$ and a set $B \subset A$ such that $g|B$ is continuous but $g$ is continuous at no point of $A$.
My idea is this:
Let $ A = \{\frac{1}{n}\, | \, n= 1, 2, \ldots \} $ and $ g\colon A \to \mathbb{R} $ be defined by $ g = \begin{cases} 0 : x=0\\ x : x \ne 0 \end{cases} $. We see that $ g $ is continuous on $ B = \{0\} $, but not for any point in $ A $.
First, does it even make sense to define $B$ as a finite set with one element? How can values of $x$ "approach" $0$ if there are no other values in $B$? Do the values that approach $0$ come from $A$ (for which $0$ is an accumulation point)? More generally, when we restrict the domain of a function as we have here, do we still look at the ambient set for values when determining limits, or are we also restricting ourselves to the subset?
Second, related to my first question is the second part of the problem. Can we talk about $\lim_{x \to \frac{1}{4}}g$ since $\frac{1}{4}$ is an "isolated" point? That is, we may not be able to find $x$-values near $\frac{1}{4}$.
Third, could this example fix the above issues?
Let $ A = (0,1) $, $ B = \mathbb{Q}\cap (0,1) $ and $ g\colon A \to \mathbb{R} $ be defined by $ g = \begin{cases} x : x \in \mathbb{Q}\\ 0 : x \notin \mathbb{Q} \end{cases} $.