add pop next pointer ii solution.