Integer Break - Dynamic Programming - Leetcode 343 - Python