Infosys Interview Question

2nd highest salary using rank and dense rank.