Number of subsequences problem solved