Added solution for CANDLE.cpp