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