linked list solution
Wrong solution
Solution
fix compile g++