Pergunta de entrevista da empresa Caterpillar

I was asked to write code to find the 3rd largest value in a list.