Leetcode 2842. Count K-Subsequences of a String With Maximum Beauty | Hello Interview