If it is equal to the character under consideration then update L [ , ] and R [ , ] as it is cnt [ j ] th occurrence of character k
if ( k == j ) { L [ j , cnt [ j ] ] = i ; F [ j , cnt [ j ] ] = i ; }