Capgemini interview question

program to find second largest no.from arraylist without using array.