UST Interview Question

Java oops, DSA problem to solve, query to get the 3rd max salary