LeetCode
Most Stones Removed with Same Row or Column
Click
here
for an explanation.