Beyond Vision interview question

simple programming and database question like find 4th maximum salary.