BYJU'S interview question

Top 2 largest elements in an array