Question d’entretien chez Infosys

Coding question on heap and graph.