Let $n$ be some positive integer. Does there exist a Riemann integrable function $$f: [0,1]^n \to \mathbb{R} $$ with the following property: for every non-empty open subset of $U \subset (0,1)^n$, the set $$ \{x \in U \ \mid \ f \text{ is discontinuous at } x \} $$ is uncountable?
I don't really know how to approach this. I know that a function is Riemann integrable if and only if it is bounded and continuous almost everywhere.
I tried to see if, for instance, I can somehow construct a function like this, such as the characteristic function on the Cantor set in $[0,1]$ (which does not satisfy the above property) and extend it to $[0,1]^n$, but I did not succeed.