The original colour of copper sulphate solution is blue. When an iron nail is dipped in the solution of copper sulphate, it forms ferrous sulphate solution and copper metal by the displacement of copper from the solution.
The colour of ferrous sulphate is green. That’s why the solution becomes green.