Solved remove duplicate from sorted list problem.