Microsoft interview question

how to add number in an array