Goldman Sachs Interview Question

word compression