Santa's Dirty Socks (Divide and Conquer Algorithms)