Distinct Subsequences - Dynamic Programming - Leetcode 115 - Python