Find The Median problem solved