Count Beautiful Splits In An Array Leetcode