Google interview question

coding question on birthday candle problem.