Leetcode 3388. Count Beautiful Splits in an Array | Hello Interview