Simple MySQL solution accepted using order by, limit, offset
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nSET N = N-1;\n  RETURN (\n      # Write your MySQL query statement below.\n      select distinct 
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nSET N = N-1;\n  RETURN (\n      # Write your MySQL query statement below.\n      select distinct Salary \n        from Employee\n        order by Salary DESC\n        LIMIT 1 OFFSET N\n  );\nEND
[]