public void deleteNode(ListNode x) {
        if (x == null) return;
        x.val = x.next.val;
        x.next = x.next.next;
    }
Case: We have only list node which is not last element. To remove this node, we can change its value
and set pointer to next of next.
src/problems/easy/DeleteNodeSingleLinkedList.java