Pergunta de entrevista da empresa NVIDIA

Write a C++ function that returns the second largest number in an array