list reverse with one traversal and delete random node