J.P. Morgan interview question

String manipulation question. Graph based (BFS/DFS) question. Story about a successful group work.