Andrey's submission of Count Subsequences | CodeChef