leetcode
Leetcode - Increasing Decreasing String Solution
Given a string s. You should re-order the string using the following algorithm: 1. Pick the smallest character from s and append it to the result. 2. Pick the smallest character from s which is greater than the last appended character to the result and append it. 3. Repeat step