Infosys Interview Question

Sum of number in an array