Frage im Vorstellungsgespräch bei Compass

Given an encoded string and the encoding pattern, decode the string.