Comscore interview question

String Manipulations, Merging Sequences