solve copy-list-with-random-pointer