Intel Corporation Interview Question

Derive the equation for accumulation given xyz parameters