Leetcode 2865. Beautiful Towers I | Hello Interview