Mudra Circle interview question

just SQL queries find second max salary oops concept