Flipkart Interview Question

problems based on graph and sorting technique