I wrote a code to get the number of sequences occurring in the user input sequence.
This is my code. It excludes the subsequence which I wish to be tested.
I need to consider 12,23,34,123,234,1234 as sequences.
Overlapping of sequences should not be considered (12 in 123 should not be considered).
For e.g. constant number 1234
User given number 124312341211423
Output : No.of Sequence found 4