Pergunta de entrevista da empresa SAP Concur

Return second highest int from an array, and return max distance in the list.