Problem Description
NOTE: If the Sub-sequence length is greater than or equal to 2 return 1, else return 0.
1 <= |A| <= 100
The first and only argument of input contains a string A.
Return an integer, 0 or 1:
=> 0 : Length of Repeating subsequence is less than 2 => 1 : Length of Repeating subsequence is greater than or equal to 2
Input 1:
A = "abab"
Input 2:
A = "abba"
Output 1:
1
Output 2:
0
Explanation 1:
"ab" is repeated.
Explanation 2:
There is no repeating subsequence.
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.