Change custom_reverse to reverse the list using a for loop instead of list splicing.