Given a 2D integer array of size M*N, find and print the sum of ith row elements separated by space.