Flipkart interview question

Based on heap, stacks, binary search, tree and graph