Answer :
If the magnetic needle shows deflection,then it means that there produced some electic effect.
The solution must be possessing ions(acidic soln)when on passing electricity produces a magnetic effect around it causing the needle to deflect sharply.