Linked List Practice Problems Leetcode Javascript