Easy offset solution
```CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\ndeclare x int;\nset x=N-1;\n  RETURN (\n      # Write your MySQL query statement below.\n     
```CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\ndeclare x int;\nset x=N-1;\n  RETURN (\n      # Write your MySQL query statement below.\n      SELECT IFNULL(\n        (SELECT DISTINCT Salary\n          FROM Employee\n          ORDER BY Salary DESC\n          LIMIT 1 OFFSET x),\n        NULL)\n  );\nEND
[]