Solved populating next right pointers in each node problem