problem link :-- http://practice.geeksforgeeks.org/problems/count-subsequences-of-type-ai-bj-ck/0 code:-- #include <bits/stdc++.h...