Zendesk Interview Question

Write a string compression method and use TDD.