Sum All Array Elements Javascript Interview