Bloomberg Interview Question

Decode string in leetcode question