Leetcode 587. Erect the Fence | Hello Interview