Find an ideal $I \subset \mathbb{Z}$ such that $I\otimes \mathbb{Z}/2 \not\cong I\mathbb{Z}/2$.
We know that $\mathbb{Z}/2$ is not a flat $\mathbb{Z}$-module since the injection $\mathbb{Z} \hookrightarrow \mathbb{Q}$ will no longer be injective after the tensor as $\mathbb{Z}\otimes_{\mathbb{Z}} \mathbb{Z}/2 \cong \mathbb{Z}/2$ and $\mathbb{Q}\otimes_{\mathbb{Z}} \mathbb{Z}/2 = 0$.
We have the general statement that an $R$-module $M$ is flat if and only if for any ideal $I\subset R$, we have $I\otimes M \cong IM$.
Now what would be an ideal $I\subset \mathbb{Z}$ such that $$I \otimes_{\mathbb{Z}} \mathbb{Z}/2 \not\cong I\mathbb{Z}/2.$$
Since we know $\mathbb{Z} \otimes \mathbb{Z}/2 \cong \mathbb{Z}/2$ given by the map $a\otimes b \mapsto ab$, so we know the image of $I \otimes_{\mathbb{Z}} \mathbb{Z}/2 $ would be $ I\mathbb{Z}/2$ and this map needs to fail to be injective.
I believe $I = (2)$ will work since $(2)\mathbb{Z}/2 = 0$, and $(2)\otimes \mathbb{Z}/2 \neq 0$, since $$2\cdot 1 \otimes 1 \neq 1\otimes 2\cdot 1 = 0$$ since $1 \not\in (2)$.
I am not so sure about the last part showing $(2)\otimes \mathbb{Z}/2 \neq 0$, can we also construct a bilinear map on $(2)\times \mathbb{Z}/2$?
All nonzero ideals $I$ of $Z$ are free of rank one, so $I\otimes Z/2Z$ is isomorphic to $Z/2Z$.
On the other hand, if $I=(2)$ then $IZ/2Z$ is clearly zero.