Pergunta de entrevista da empresa Quest Global

Find second largest in array and word count problem