public Node reverse(final Node head) {
        if (head == null || head.next == null) {
            return head;
        }
        final Node second = head.next;
        head.next = null;
        final Node rest = reverse(second);
        second.next = head;
        return rest;
    }