_Sam's submission of Median | CodeChef