Amazon interview question

1. Two sum problem 2. First Unique element of a string