The exercise states:
The quotient ring $\mathcal{O}/\mathfrak{a}$ of a Dedekind domain by an ideal $\mathfrak{a}\ne 0$ is a principal ideal domain.
The proof by localization $\mathcal{O}/\mathfrak{p}^n \cong \mathcal{O}_\mathfrak{p}/\mathfrak{p}^n\mathcal{O}_\mathfrak{p}$ is quite direct. But I wonder in case one has not learnt about DVR, how does one solve the problem by hint (choose $\pi\in\mathfrak{p}\setminus\mathfrak{p}^2$, showing that $\mathfrak{p}^v = \mathcal{O}\pi^v + \mathfrak{p}^n$) ?
You can write down the factorization into prime ideals of the principal ideal $(\pi)$. This will contain exactly one factor of $\mathfrak{p}$ by construction, and similarly for powers of $\pi$. If you quotient by $\mathfrak{p}^n$, only ideals including this, thus dividing it remain. Hence the stated equality and the result for $\mathfrak{a}$ prime. The general result follows by the Chinese remainder theorem and the observation that a product of PID still has every ideal principal (it's just no longer a domain).
edit: A nice consequence of this is, that every ideal in a Dedekind domain is generated by two elements! (take $\mathfrak{a}$ to be principal)