Pergunta de entrevista da empresa Google

There was a question on finding the continuous product of an array from a given index.