Pregunta de entrevista de Expedia Group

Remove duplicate from a vector, then think about how to optimize it.