Write an efficient algorithm to find the first non-repeated character in a string defined
over the English alphabet set [a-z, A-Z].
For example, the first non-repeated character in teeter is r.
Analyze the time complexity of your algorithm.
NOTE:Time complexity should be linear not quadratic .