Second version of Populating Next Right Pointers In Each Node