Virtusa interview question

They asked me how to find second highest Element in a array

Interview Answer

Anonymous

9 Oct 2023

I just sorted and length-2 will be second highest Element