Frage im Vorstellungsgespräch bei Matrix ComSec

I was asked to write code to find second largest element from an array without using STL and inbuilt functions