FUSE Autotech interview question

To create sort of decoder to an encoded string. looked like Leetcode question .