Google interview question

algorithm of graphic theory