How do you find duplicate characters in a string in Java without using collections