Amazon Interview Question

Online coding question : Do the vertical sum of all the axis.