nested: ``2[abc3[cd]]ef`` → ``abccdcdcdabccdcdcdef``. a. Maintain ``current_str = ""`` and ``current_k = 0``. b. Digit: build ``current_k = current_k * 10 + digit ...