Proving a function is not Riemann integrable

Hint: Every subinterval of $[0,1]$ contains both rational numbers and irrational numbers.

Look at the definition of a function being Riemann integrable on the interval $[a,b]$ (in this case $[0,1]$). This definition must fail for this function.

Why?

Well, since every subinterval contains irrational numbers, the infimum of the function values over any subinterval is $0$. Similarly, since every sub-interval contains rational numbers, the supremum of the function values over any subinterval is $1$.

What does this tell you about the upper and lower sums over any partition?