working seq trans cpp soln