GGK Interview Question

Program for second largest number