Moody's interview question

third largest number in array