Morgan Stanley Interview Question

Q: asteroid collision Q: first non repeating character in a string