On an exam I took recently, I was challenged with the following problem but couldn't come up with an answer. I couldn't find the answer by searching the forum either so I hope it hasn't been asked before. Any help on how to answer, and if possible how to think when challenged with this kind of problem, is much appreciated:
Problem Create a Lebesgue measurable set $E\subseteq [0,1]$ such that $0<m(E \cap I)<m(I)$ for all intervals $I=(a,b)$, where $0\leq a<b\leq 1$ and m is the Lebesgue measure.