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