Alachisoft interview question

Write a program to find second largest number. Swapping best algorithm. What are Sessions?