Leetcode 2478. Number of Beautiful Partitions | Hello Interview