Insertion Sort Leetcode Problem