Function to find the height sizeof the current component with vertex s
using System ; using System . Collections . Generic ; class GFG { static int height ( int s , List < int > [ ] adj , int [ ] visited ) {