Microsoft interview question

get the second largest element in an array