Google interview question

Questions around graphs, hash sets