you give array length n integer x brand new robot what robot follow iterate element array let current element q if q divisible x robot add x copy integer fracqx end array move element Note newly add element process robot later otherwise q divisible x robot shut downplease determine sum value array end process