only figure out the O(n) solution, what's the divide and conquer solution?