Marshall Wace Interview Question

Graphs and binary search and a lot of strings