Pregunta de entrevista de Juniper Networks

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