A and B and Interesting Substrings

Problem Name:
A and B and Interesting Substrings
Site:CodeForces
Links:
Tags:
Problem setters: