Function to perform DFS Traversal from source node to the deepest node and update maximum distance to the deepest node
static void dfs ( int src , List < List < int > > Adj , List < bool > visited , int level ) {