APL interview question

mathematical calculation