If misplaced letter is found , print its original index and its new index
if ( A [ b ] != - 1 ) { document . write ( i + 1 + " " + ( A [ b ] + 1 ) + " " ) ; return ; } if ( B [ a ] != - 1 ) { document . write ( i + 1 + " " + ( B [ a ] + 1 ) + " " ) ; return ; }