Domanda di colloquio di ShoreTel

Write a Programmer to get second largest integer with and without sorting?