Maximum Non Overlapping Bridges Leetcode Sql