Leetcode 2012. Sum of Beauty in the Array | Hello Interview