Domanda di colloquio di Zego

Q: Given an array of strings, replace all duplicate strings with an empty string.