Flipkart interview question

→ Graph challenge → Monotonic Stack & Merge Sort → Tree problem