Minimum Insertions To Sort An Array Leetcode, This method follows the incremental method.