populating next right pointers in each node java leetcode