Again reduce K by current substring 's  length one by one and when it becomes less,  print Kth character of current substring
if ( K <= curSubstringLen ) return str [ ( suffixArr [ i ] + K - 1 ) ] ; else K -= curSubstringLen ; } break ; } else K -= charToSkip ; } }