Given two strings A and B, consisting of only digits 1 and 2 and of equal length. Find the number of subsets of indices such that if the characters at those positions are sw