Two Sigma interview question

Decode a string encoded using a specific encoding algorithm.