Pergunta de entrevista da empresa CTERA Networks

1)Find the biggest and next biggest elements in an array