[LC] Added solution to distinct subsequences.