Bloomberg interview question

Decode string in leetcode question