if length of string tmp is greater than k , then we have reached our destination string now we can return character at index k
while ( lenn < k ) : NEW_LINE INDENT tf = f NEW_LINE ts = ss NEW_LINE DEDENT