The Trade Desk Interview Question

To encode a string like kubernetes = k8s