Bloomberg Interview Question

Leetcode: decode string. After getting to a solution, the interviewer also asked about edge cases and to expand my solution to cover those edge cases