committing leetcode removenthnodefromendoflist