Add solution to 'populating next right pointer ii'.