Sum Of All Array Elements Javascript Interview