Amplitude Interview Question

Basic DSA questions: 1. Encoding/decoding a string (come up with own logic)