ZOAC
**From Baekjoon 16719 ZOAC.** Given an uppercase string `S`, choose the lexicographically smallest character in the current interval, reveal it at its original position, and print all revealed characters in source order. Process the interval to the right of the chosen character before the interval to its left. Return the sequence of `N` printed strings. Equal characters use the leftmost occurrence.