Pergunta de entrevista da empresa Salesforce

Algorithm questions: product of array except self