Function to perform DFS of a vertex 1. stores the DFS of the vertex 1 in vector p , 2. store the start index of DFS of every vertex 3. store the end index of DFS of every vertex
void Dfs ( int ch , int par ) { p [ currentIdx ] = ch ;