Analog Devices Interview Question

LCD,DSD questions C programming to get 2nd largest number