Pergunta de entrevista da empresa Fannie Mae

reverse the string? write second highest salary on table?