Work done in bringing the fifth charge at origin is equal to change in the potential energy of the system of charges.
Wext=ΔU=Uf−Ui if Ui=0 (assumed)
Wext=Uf−0=[2KQ2+2KQ2+25KQ2+25KQ2]
Hence, the work done in bringing the fifth charge at the origin is
Wext=4πϵ0Q2[1+51].