spoj DSUBSEQ: counting number of distinct subseq, of a string(incl empty string