Let $\left\{ r_n\right\}$ be enumeration of rational numbers. Prove
(1) F is continuous from the right
(2) F is continuous at $x$ if $x$ is irrational
$$F(x)=\sum_{n}^{\infty}\frac{1}{2^n}\chi_{[r_n, \infty)}$$
I have shown that $F$ is strictly increasing ($x < y \Rightarrow F(x)<F(y)$) and $F$ is bounded (in particular $F(-\infty)=0, \ F(+\infty)=1$).
I thought if I consider a sequence $(x_n)\searrow x$, then $F(x)< \cdots <F(x_2)<F(x_1)$ and monotone boundness tells us $F(x_n) \rightarrow F(x)=\inf_n\left\{ F(x_n)\right\}$, but I'm not sure about this.
You can directly use the definition of continuity.
Fix $x_0 \in \mathbb{R}$, we show $f$ is right-continuous at $x_0$. Given $\varepsilon > 0$, choose $\delta$ so small such that all $\{r_n\}$ in the interval $(x_0,x_0+\delta)$ satisfies $2^{-n} < \varepsilon$. When $x\in (x_0,x_0+\delta)$, we have $$|F(x) - F(x_0) | = \sum_{n: r_n \in (x_0,x)} \frac{1}{2^n} \leq \sum_{n: r_n \in (x_0,x_0+\delta)} \frac{1}{2^n} \leq \varepsilon \sum_{n=0}^\infty \frac{1}{2^n} = 2\varepsilon $$ this established the right-continuity.
Proving $f$ is continuous at an irrational $x_0$ is similar. Given $\varepsilon > 0$, choose $\delta$ so small such that all $\{r_n\}$ in the interval $(x_0-\delta,x_0+\delta)$ satisfies $2^{-n} < \varepsilon$, we can do this because $x_0$ is irrational. Then proceed as above.