Atos Interview Question

array multiplication and then optimization