The Trade Desk interview question

To encode a string like kubernetes = k8s