Bloomberg Interview Question

BFS, system design, String manipulation