$$ f\left( x \right) =\left{ \begin{array}{c} 1, x\in \left[ 0,\frac{1}{2} \right],\\ 0, x\in(\frac12,1]\\ \end{array} \right ...