Fannie Mae Interview Question

reverse the string? write second highest salary on table?