Is the sumRow function supposed to output the sum of a row, or swap elements in that row?

To output the array backwards just do

for (int i = 4; i >= 0; i--)
{
for (int ii = 4; ii >= 0; ii--)
{
cout << data[i][ii];
}
cout << endl;
}