Amazon interview question

Find duplicate values in a graph?