Google interview question

string operations and breadth search algorithm trees question mo