Digitize Interview Question

c++ code to sum two halves of an array