Visa Inc. Interview Question

check for duplicates characters in a string