The function returns index of the first non - repeating character in a string . If all characters are repeating then returns INT_MAX
static int firstNonRepeating ( String str ) { int NO_OF_CHARS = 256 ;