Wallet Hub interview question

multiplication of array in java exclude index