Flipkart Interview Question

Longest connected component in a graph