Hackerrank: Running time of quicksort algorithm - https://www.hackerrank.com/challenges/quicksort4