HARMAN interview question

Write a programm to find Array sum