Tech Mahindra Interview Question

Puzzle on burning candle