Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find the smallest rowSum or colSum, and let it be x. Place that number in the grid, and subtract x from rowSum and colSum. Continue until all the sums are satisfied.
Solve with full IDE support and test cases