Decrease And Conquer Algorithm Examples Python