Pregunta de entrevista de Deloitte

Matrix multiplication code. SQL query to find 2nd highest salary in the table.