add sum_n_array.cpp