Problem Statement
Your friend has N different kind of candles each present In Mi units (i = 1 to N) . He Is allow one type of candy every