(b) Maximum energy stored in the capacitor
$U_{\max} = \frac{Q^{2}}{2C}$
The energy is stored equally in electric and magnetic fields
So, energy in electric field
$E = \frac{1}{2}\left( \frac{Q^{2}}{2C} \right)$
Now, $\frac{Q^{'2}}{2C} = \frac{1}{2}\frac{Q^{2}}{2C}$
$\Rightarrow Q^{'} = \frac{Q}{\sqrt{2}}$