added findDuplicateChar.java