Insertion Sort Question Leetcode Sql Sheet