Frage im Vorstellungsgespräch bei IQVIA

If there is an integer array how will you find the 3rd largest number from it. write a java code for that.