Pregunta de entrevista de Nokia

Leetcode Easy questions : remove duplicate element. Different approach, complexity