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