Visa Inc. Interview Question

Find the first duplicated number in an array.