When size of list is 0 and new closing braces is encountered then print its index starting from 1
if ( lst . lengt == 0 && ( string [ i ] in lst2 ) ) { document . write ( ( i + 1 ) + " " ) ; c = 1 ; break ; } else {