Pregunta de entrevista de Side

Two programming question - 1.Find duplicates from array of string 2.Reverse individual word from sentence