Atlassian Interview Question

Algorithm to find the second greatest number of the array? What is the time complexity?