Driver code
public static void main ( String [ ] args ) { String s = " geeksforgeeks " ; System . out . println ( " The ▁ input ▁ String ▁ is ▁ " + s ) ; int length = longestUniqueSubsttr ( s ) ; System . out . println ( " The ▁ length ▁ of ▁ the ▁ longest ▁ non - repeating ▁ character ▁ substring ▁ is ▁ " + length ) ; } }