Pergunta de entrevista da empresa Nokia

Find the second largest and smallest in the given array without sorting.