change to algorithmn, instead of count values in the dict, boolean values indicating if char is non reapeating