Hint. A bounded function $f:[a,b]\to\mathbb R$ is Riemann integrable iff for every $\varepsilon>0$, here exists a partition $P$ of $[a,b]$, such that
$$
U(f,P)-L(f,P)<\varepsilon.
$$
In the case of this function $L(f,P)=0$, for all $P$ of $[0,1]$.
Given an $\varepsilon>0$, we simply need to find a partition $P$ of $[0,1]$ for which $U(f,P)<\varepsilon$.
Clearly, there are only finitely many points $\{x_k\}$ in $[0,1]$, where
$$
f(x_k)>\frac{\varepsilon}{2}.
$$
Say $N=N(\varepsilon)$ such point. Simply take a partition, where all these $x_k$'s lie in very small subintervals $[t_{k_1},t_{k_2}]$, i.e.,
$$
t_{k_1}=x_k-\delta<x_k<x_k+\delta=t_{k_2},
$$
with $\delta<\varepsilon/2N$.
Then check that for this partition $U(f,P)<\varepsilon$.