Deloitte interview question

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