Add solution to 'distinct subsequences' and 'populating next right pointer'.