I know that the function is continuous at $x=0$ by sequential criteria but I can't figure out the Riemann integrability of this function:
Consider $f:[-1,1] \to \mathbb{R}$ defined by $$f(x)=\begin{cases} \sin x, & x \in [-1,1] \cap \mathbb{Q} \\ 0, & x \notin [-1,1] \cap \mathbb{Q} \end{cases}$$ Then at $x=0$, $f$ is
(A) continuous and Riemann integrable in every interval $(a,b)$ containing $0$.
(B) continuous and Riemann integrable in exactly one interval $(a,b)$ containing $0$.
(C) continuous but not Riemann integrable in any interval containing $x$
(D) discontinuos.
Take any partition $P$ of the interval $(a, b) \subset [-1, 1]$ with $0 \in (a, b)$ arbitrary. Clearly, the following holds $a < 0 < b$, therefore there exists $n' \in \mathbb{N}$ with $x_{n'}, x_{n' + 1} \in P$ s.t. $x_{n'} < 0$ and $x_{n' + 1} \geq 0$. $$\begin{align*} U(f, P) - L(f, P) &= \sum_{k = 1}^n(M_k - m_k)(x_k - x_{k - 1})\\ &=\sum_{k = 1}^{n'}(M_k - m_k)(x_k - x_{k - 1}) + \sum_{l=n' + 1}^n(M_l- m_l)(x_l - x_{l - 1})\\ &= \sum_{k = 1}^{n'}(0 - \sin(x_{k - 1}))(x_k - x_{k - 1}) + \sum_{l=n' + 1}^n\sin(x_l)(x_l - x_{l - 1}) \\ &=\sum_{k = 1}^{n'}(-1)\sin(x_{k - 1})(x_k - x_{k - 1}) + \sum_{l=n' + 1}^n\sin(x_l)(x_l - x_{l - 1}) &(1) \\ &\geq \sum_{l=n' + 1}^n\sin(x_l)(x_l - x_{l - 1}) &(2)\\ &\geq \sum_{l=n' + 1}^n \cfrac{2}{\pi}x_l(x_l - x_{l - 1}) &(3)\\ &> 2/\pi\sum_{l=n' + 1}^n 1/2(x_l + x_{l - 1})(x_l - x_{l - 1})\\ &= 1/\pi\sum_{l=n' + 1}^n(x_l^2 - x_{l - 1}^2) = 1/\pi \end{align*}$$ The left sum in the line (1) is greater than $0$, as each term is non-negative, i.e. $x_k - x_{k - 1} > 0$ for any $k \in [n]$, $-\sin(x_{k}) \geq 0$ for any $k \leq n'$. Also the inequality $\sin(x) \geq 2/\pi\cdot x$ for any $0 < x < \pi/2$ was used in the line $(2)$. Finally, note that the inequality $x_l > 1/2(x_l + x_{l - 1})$ for any $l > n' + 1$ was used in line $(3)$. Hence, we conclude that $f$ is not Riemann integrable.