Make problem49 prepend much simpler