Insertion Sort Problems Leetcode Sql