Populating Next Right Points in Each Node

this solution will pass these test cases.