Hackerrank Birthday Cake Candles Problem explained with