KPMG Interview Question

In an array of strings, remove all the duplicates and print the modified array.