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