Driver code
static void Main ( ) { string s = " geeksforgeeks " ; Console . WriteLine ( " The ▁ input ▁ string ▁ is ▁ " + s ) ; int length = longestUniqueSubsttr ( s ) ; Console . WriteLine ( " The ▁ length ▁ of ▁ the ▁ longest ▁ non - repeating ▁ character ▁ substring ▁ is ▁ " + length ) ; } }