Add solution to next right pointers in each node