Cisco Interview Question

removal of duplicate elements in array