Descriptions:

Subsequence Counting

CodeForces - 960C