Frage im Vorstellungsgespräch bei Zego

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