MAQ Software Interview Question

Print the third largest element in an array was asked to write code for it