title: Insert a Node at a Specific Position in a Linked List
body: <p>I need to insert a note at position. I didn't get any error but my answer is wrong. Could you please help me to correct my code?
   <a href="https://www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list/problem" rel="nofollow noreferrer">Link to question</a></p>
  
  <pre><code>Node InsertNth(Node head, int data, int position) {
      Node node = new Node();
      node.data = data;
   if (head == null){
          return node;
      } else {
      Node current = head;
      for (int i=0; i &lt; position-1 ; i++){
          current = current.next;
      }
  
      node.next = current.next;
      current.next = node;
   return head;
  }
  
  }
  </code></pre>