Divide And Conquer Problems Leetcode Python