N-th Distinct Salary Lookup — Coding problem | OneNoughtOne