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