Virtusa interview question

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

Interview Answer

Anonymous

Oct 9, 2023

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