Pergunta de entrevista da empresa Digité

which one is more efficient between array and linked list. and one problem to code, given a string of alphanumeric characters find out the character which repeated most. and gave me a javascript code and I had to find out the output.