reverse alternate nodes and append at the end