Solved 10107, what is the median

Used Binary Search to insert a new number in order
and finding a mid number.