We have $$\begin{array}{l}
A_{0}=\frac{1}{2 \pi} \int_{0}^{2 \pi}\left(2 \pi \theta-\theta^{2}\right) d \theta=\frac{2 \pi^{2}}{3} \\
A_{n}=\frac{1}{\pi} \int_{0}^{2 \pi}\left(2 \pi \theta-\theta^{2}\right) \cos n \theta d \theta=-\frac{4}{n^{2}} \\
B_{n}=\frac{1}{\pi} \int_{0}^{2 \pi}\left(2 \pi \theta-\theta^{2}\right) \sin n \theta d \theta=0
\end{array}$$ and so $$u(r, \theta)=\frac{2 \pi^{2}}{3}-4 \sum_{n=1}^{\infty} \frac{r^{n}}{n^{2}} \cos n \theta$$.