Programming Question-3 readEdges