Pergunta de entrevista da empresa Google

coding question on birthday candle problem.