https://www.hackerrank.com/challenges/insertionsort2