Question d’entretien chez Paytm

written: write a program to find 3rd highest number in an array