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 ) : NEW_LINE INDENT return string [ ( suffixArr [ i ] + K - 1 ) ] NEW_LINE DEDENT else : NEW_LINE INDENT K -= curSubstringLen NEW_LINE DEDENT break NEW_LINE else : NEW_LINE K -= charToSkip NEW_LINE