Problem 2390 · Medium
Push letters onto a stack and let each star pop the letter nearest to its left.
Open the interactive visualisation