Driver Code
public static void main ( String [ ] args ) { String str = " ABCABD " ; if ( check ( str ) ) System . out . println ( " Repeated ▁ Subsequence ▁ Exists " ) ; else System . out . println ( " Repeated ▁ Subsequence " + " ▁ Doesn ' t ▁ Exists " ) ; } }