We need to solve for the Utility function given the indirect utility function (IUF).
The Indirect Utility Function is: $V(p_1,p_2,w)=w\left(\frac{1}{p_1}+\frac{1}{p_2}\right)$
From IUF we can write the expenditure function as: $E(p_1,p_2,U)=\frac{Up_1p_2}{p_1+p_2}$
Using Shepherd's lemma we can find the Hicksian demand functions. Let us denote the two goods by $x$ and $y$, respectively.
Thus, $x^h(p_1,p_2,U)=\frac{\partial E}{\partial p_1}=\frac{Up_2^2}{(p_1+p_2)^2}$ and $y^h(p_1,p_2,U)=\frac{\partial E}{\partial p_2}=\frac{Up_1^2}{(p_1+p_2)^2}$
Since we are trying to find a utility function of the form $U(x,y)$ we need to use the expression for $x^h$ and $y^h$ obtained above to solve for $U(x,y)$
let $p=\frac{p_1}{p_2}$ and rewrite $x^h$ and $y^h$ as:
$$\begin{eqnarray} x=x^h=\frac{U}{\left(\frac{p_1}{p_2}+1\right)^2}=\frac{U}{(p+1)^2} \tag{1} \\
y=y^h=\frac{U}{\left(1+\frac{p_2}{p_1}\right)^2}=\frac{Up^2}{(p+1)^2} \tag{2}
\end{eqnarray}$$
substituting $(1)$ in $(2)$ gives us the relation: $$p^2=\frac{y}{x} \implies p=\sqrt{\frac{y}{x}}\tag{3}$$
Lastly, substituting $(3)$ in $(1)$ gives us: $x=\frac{Ux}{(\sqrt x +\sqrt y)^2}$
Rewriting above we get: $$\boxed{U(x,y)=(\sqrt x+ \sqrt y)^2}$$