AppNexus interview question

Related to string manipulation