Domanda di colloquio di Flipkart

Coding round question was based on greedy algorithms