In an oscillating LC circuit the maximum charge on the capacitor is Q. The charge on the capacitor when the energy is stored equally between the electric and magnetic field is:
For LC circuit, UE+UB=Q22C
Here UE=UB and UE=q22C where q is the required charge on the capacitor.
So, 2UE=Q22C
or 2×q22C=Q22C
or q=Q√2