solve populatingNextRightPointersInEachNodeII