Function to perform DFS Traversal from source node to the deepest node and update maximum distance to the deepest node
def dfs ( src , Adj , level , distance ) : NEW_LINE INDENT global visited NEW_LINE DEDENT