I have tried the SUMTRAIN problem, as suggested in the comments below the problem, i have to add the largest integer per row irrespective or their position . so tried this : https://ideone.com/gsz60r
But it give Wrong Answers. Any suggestion what will be causing WA in this?