Problem statement:
Let us assume that the Fourier series of an unknown function $f(x)$ is
$$ \sum ^{\infty} _{n=1} \frac{\sin(nx)}{n}. $$
Find the function $f(x)$ to which it belongs.
Attempt at solution:
The first thing I did was plot for $x \in (-\pi, \pi)$ for $n = \{1, 2, \ldots, 10\}$.

From that we can see there is a dip around $x = -0.5$ and then an increase around $x = -0.2$ or something.
As we are given a Fourier sine series we know that the function $f(x)$ is an odd function and therefore $a_n = 0$. Therefore, we know that $f(x)$ can be written as
$$ f(t) = \sum ^{\infty}_{n=1} b_n\sin \left(\frac{n\pi t}{L}\right). $$
By comparing the equation above to the series given at the start of the problem we immediately see that $L = \pi$ and $b_n = \frac1n$. Therefore, we are searching for a function $f(x)$ which makes the following hold:
$$ b_n = \frac1L \int^L _{-L}f(t)\sin \left(\frac{n \pi t} {L} \right)dt = \frac1n. $$ Substituting $L = \pi$ we get
$$ \frac{1}{\pi} \left( \int ^{0} _{-\pi} f(t) \sin (nt)dt + \int ^{\pi} _0 f(t) \sin (nt)dt\right) = \frac1n $$
Our function $f(x)$ must therefore fulfill the following integral:
$$ \int ^{0} _{-\pi} f(t) \sin (nt)dt + \int ^{\pi} _0 f(t) \sin (nt)dt = \frac{\pi}{n}. $$
This is where I get stuck as I'm unsure of the validity of my prior steps. I would appreciate a nudge in the right direction.