Update Duplicate.java

Replaced countingSort method with a more efficient findDuplicate method where a value over 1 is searched for in count.  If there's a value over 1 in count, that means a number must occur at least twice in array.  This number corresponds to its index in count.