leetcode, distinct sub sequence, first try