Amazon Interview Question

Find duplicate values in a graph?