distinct-subsequences_v2

v1: DFS
v2: DP, 0(n^2)