$(*)$ Let $M > 0$ be a constant. Assume that ${f_n}$ is a sequence of lebesgue integrable functions such that $0 < f_n < M$ a.e., and $\lim_{n \rightarrow \infty } f_n = f$ almost everywhere for some function $f : X \rightarrow \mathbb{R}$.
Find an example of ${f_n}$ as stated in $(*)$ such that $f_n \uparrow f$ but $f$ is not lebesgue integrable. Show in your example that $f$ is not lebesgue integrable.
Now I was thinking about a function that has a lot of gaps in it. Therefore, I was thinking about a function similar to the Dirichlet Function. Am I on the right track here?