Maximum Non Overlapping Bridges Leetcode 75