Minimum Number of Buckets Required to Collect Rainwater from Houses(LeetCode 2086):

Problem