Leetcode 1199. Minimum Time to Build Blocks | Hello Interview