first non-repeated character solution.