Divide And Conquer Algorithm Leetcode