Tech Mahindra interview question

Puzzle on burning candle