Solve the 'Distinct Subsequences' question