Implemented algorithm to check unique characters in a string using java.

Implemented algorithm to check unique characters in a string using java
without additional data structures.