APL Interview Question

mathematical calculation