First Non-repeated Character challenge - CodeEval