Solve the 'reverse a sequence' problem using a different solution.