if the index is invalid return the list unchanged else insert the node at the index. This is my approach but it doesn\'t insert the node.
public class node {