Question d’entretien chez STMicroelectronics

candle puzzle, basic java