Driver code
str = " geeksforgeeks " NEW_LINE print ( " The ▁ input ▁ is ▁ " , str ) NEW_LINE len = longestUniqueSubsttr ( str ) NEW_LINE print ( " The ▁ length ▁ of ▁ the ▁ longest ▁ " " non - repeating ▁ character ▁ substring ▁ is ▁ " , len ) NEW_LINE