Find the sum of row elements & column elements of a matrix
Input:
1      2     3     4     5
6      7     8     9    10
11   12   13   14   15
16   17   18   19   20
21   22   23   24   25
Output:
row[0]=15
row[1]=40
row[2]=65
row[3]=90
row[4]=115
column[0]=55
column[1]=60
column[2]=65
column[3]=70
column[4]=75
Implementation: