Solution for deleting random node in middle of linked list given only that node