Amazon interview question

product of array expect itself