I the height of the second hill is higher than the first one, then it needs additional energy to climb the second hill. The coaster keeps on losing energy from air resistance and rolling friction between the rails and the coaster wheels and will eventually come to rest.