insert a node at a specific position : I need to insert a note at position. I didn't get any error but my answer s wrong. Could you please help me to correct my 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 < position-1 ; i++){
            current = current.next;
        }
        
        node.next = current.next;
        current.next = node;
     return head;
    }
        
    }