Pergunta de entrevista da empresa Anonymous

Reverse a linkedin list and second largest element in an array