2539: Count the Number of Good Subsequences

Problem Statement