Amazon Interview Question

They asked me to implement a function that finds the first unique character in a string classic string/hashmap problem, but they wanted multiple edge cases handled upfront.