I harass Calculus students with this example (which one can easily scale and translate to $[0,1]$):
Let $f(x) = \tan^{-1}(x) + \tan^{-1}(1/x)$. Compute $f(1)$, $f(-1)$, and $f'(x)$. How is that possible?
They find $f(1) = \pi/2$, $f(-1) = -\pi/2$, and $f'(x) = 0$ (almost) everywhere. Which should be a good enough hint.
Worth noting that this $f$ is continuous (constant!) a.e. and differentiable a.e. I like this $f$ because the explanation of constancy is simple if one remembers one's Trig: $f$ is the sum of two (directed) complementary angles. The direction just reverses as we pass through $0$.