add populating next right pointers in each node ii solution