Cognizant Interview Question

DFS, Array of objects, Graph and MF