Solved 10041 Vito's Family

Finding median of numbers.
Sorted and found median and summed up diffs between numbers and median