Microsoft Interview Question

how to add number in an array