public static void skipMDeleteN(LinkedListNode head, int M, int N)
    {
        LinkedListNode curr = head;
        
        while (curr != null)
        {
            for (int i = 1; i < M; i++)
                curr = curr.getNext();
            
            if (curr == null)
                return;
            
            if (curr.getNext() == null) return;
            
            LinkedListNode t = curr.getNext();
                
            for (int i = 0; i < N && t != null; i++)
            {
                t = t.getNext();
            }
            
            curr.setNext(t);
            curr = t;
        }
    }