The function is $f(x) = 1$ for $ 0 \le x \lt 1 $ and $f(x) = 2$ for $x = 1$
I calculate the upper sum
$$U(P,f) = \sum_{i=1}^n M_i \Delta x_i = \sum_{i=1}^{n-1} 1\,\Delta x_i + 2 \,\Delta x_n = 1(x_{n-1} - x_0) + 2(x_n - x_{n-1}) = 2 - x_{n-1}$$
$$L(P,f) = \sum_{i=1}^n m_i \,\Delta x_i = \sum_{i=1}^n 1 \,\Delta x_i = 1 - 0 = 1$$
So $U(P,f) - L(P,f) = 1 - x_{n-1}$
Then for some arbitrary $\epsilon > 0$ we choose $1 - x_{n-1} \lt \epsilon$ so the function is Riemann integrable in $[0,1]$ because $U(P,f) - L(P,f) < \epsilon$.
Furthermore, the lower Riemann integral $\int_0^1 f = 1$
Just wondering if I did this correctly. Thanks for any help.
Of course because the discontinuities are finite.