original list:0,0,0,0,0,0,0,0
write the result for the list after running the following algorithm
