Implement a uniq-like function | Vanta Coding Question