Pergunta de entrevista da empresa Flipkart

Coding round question was based on greedy algorithms