add solutions for polulating next right pionters problems