Bloomberg Interview Question

subset of string