Given a string find the first non-repeated character.
Anonymous
@Rajiv : Your solution is completely wrong. It will fail for input of "aaa" Reason: on first check, you insert "a". On next check you remove it. On next check you again insert it and return that as your answer, even though it was repeated thrice.
Check out your Company Bowl for anonymous work chats.