Scott Logic Interview Question

Coding - simple string manipulation algorithms