Google Interview Question

coding question on birthday candle problem.