Pergunta de entrevista da empresa Juniper Networks

seggregate a linked list find duplicates in an array find max and second max in an array