Personagraph Interview Question

removing duplicate item in an array