Ripple interview question

Decode string and implement SQL connector