Domanda di colloquio di Publicis Sapient

Question on JavaScript prototype and object reference and how to find duplicate letter in the word