Two Sigma Interview Question

Decode a string encoded using a specific encoding algorithm.