updated hackerRank InsertionSortp1 to stop updating strings when value is in final location