LTM Limited Interview Question

Second highest salary in spark and sql