Wrong expected outcome it seems


#1

The problem is not clear.
Why “abba” gives false where “b” is clearly a repeating subsequence of “abba”.


#2

Given a string A , find if there is any subsequence that repeats itself.

A subsequence of a string is defined as a sequence of characters generated by deleting some characters in the string without changing the order of the remaining characters.

NOTE : sub-sequence length should be greater than or equal to 2 .


#3

you dont havee to return the length you just have to tell if at all the subsequence exist or not which has the length greater than or equal to 2.