add java solution for FirstNonRepeatedCharacter